package com.smarthospital.dao.daoService;

import com.smarthospital.dao.mapper.UserDao;
import com.smarthospital.entity.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserDaoService{

    @Resource
    private UserDao userDao;


    public int insertSelective(User pojo){
        return userDao.insertSelective(pojo);
    }


    public int update(User pojo){
        return userDao.update(pojo);
    }

    public User selectById(Long id) {
        return userDao.selectById(id);
    }

    public User selectByUnionid(String unionid) {
        return userDao.selectByUnionid(unionid);
    }
    public User selectByoPenId(String openId) {
        return userDao.selectByOpenId(openId);
    }


}
